﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OurFAS.MyCommon
{
    public class CommonHelper
    {
        public static string ServerAddress;

        public static List<string> splitStr(string mString, char str)
        {
            try
            {
                List<string> al = new List<string>();
                if (mString != "")
                {
                    string[] arr = mString.Split(str);

                    for (int i = 0; i < arr.Length; i++)
                    {
                        if (arr[i].Trim() != "")
                        {
                            al.Add(arr[i]);
                        }
                    }
                }
                return al;
            }
            catch (Exception err)
            {
                string e = err.Message;
                return null;
            }
        }
    }
}
